package com.vicene.gmail.common.to.es;

import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuEsModel {
    private Long spuId;

    private String skuTitle;

    private Long skuId;

    private BigDecimal skuPrice;

    private String skuImg;

    //根据销售量排序
    private Long saleCount;

    //是否有库存
    private Boolean hasStock;

    //根据热点评分查询
    private Long hotScore;

    //根据品牌查询
    private Long brandId;

    //根据3级分类查询
    private Long catalogId;

    private String brandName;

    private String brandImg;

    //根据3级分类名称查询
    private String catelogName;

    //根据规格参数查询
    private List<Attrs> attrs;

    @Data
    public static class Attrs{
        private Long attrId;

        private String attrName;

        private String attrValue;
    }
}
